<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head>

</head>
<body style="overflow:hidden">
<!--**************   卓正 PageOffice 客户端代码开始    ************************-->
<script language="javascript" type="text/javascript">
    function OnPDFCtrlInit() {
        //PDF的初始化事件回调函数，您可以在这里添加自定义按钮
        if (("windows") == (pdfctrl.ClientOS)) {
            pdfctrl.AddCustomToolButton("搜索", "SearchText()", 0);
            pdfctrl.AddCustomToolButton("搜索下一个", "SearchTextNext()", 0);
            pdfctrl.AddCustomToolButton("搜索上一个", "SearchTextPrev()", 0);
            pdfctrl.AddCustomToolButton("实际大小", "SetPageReal()", 16);
            pdfctrl.AddCustomToolButton("适合页面", "SetPageFit()", 17);
            pdfctrl.AddCustomToolButton("适合宽度", "SetPageWidth()", 18);

        } else {
            pdfctrl.CustomToolbar = false;
        }

    }

    function SearchText() {
        pdfctrl.SearchText();
    }

    function SearchTextNext() {
        pdfctrl.SearchTextNext();
    }

    function SearchTextPrev() {
        pdfctrl.SearchTextPrev();
    }
    function SetPageReal() {
        pdfctrl.SetPageFit(1);
    }
    function SetPageFit() {
        pdfctrl.SetPageFit(2);
    }
    function SetPageWidth() {
        pdfctrl.SetPageFit(3);
    }
</script>

<div style="height:850px;width:auto;" th:utext="${pageoffice}">

</div>
</body>


</html>
